package com.engine4cloud.tdf.supervision.feign;

import com.engine4cloud.tdf.common.core.constant.SecurityConstants;
import com.engine4cloud.tdf.common.core.constant.ServiceNameConstants;
import com.engine4cloud.tdf.common.core.util.R;
import com.engine4cloud.tdf.supervision.dto.query.JzdxTerminalQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.JzdxTerminalManageResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "RemoteJzdxTerminalService", value = ServiceNameConstants.SUPERVISION_SERVER)
public interface RemoteJzdxTerminalService {

    @PostMapping("/inner/cor/terminal/manage/find")
    R<JzdxTerminalManageResultDTO> findByTerminal(@RequestBody JzdxTerminalQueryDTO dto, @RequestHeader(SecurityConstants.FROM) String from);

}
